﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Site.ViewModels.ProductTagModels>" %>
<%if(Model!=null && Model.Tags!=null){ %>
<div class="bg_tag"><h4><%=ViewData["Title"] %></h4></div>
<div class="pad">
    <%foreach (var item in Model.Tags)
      {
          string css = string.Empty;
          css = item.ProductTagMaps.Count >= 1 && item.ProductTagMaps.Count <= 10 ? "font_1" : css;
          css = item.ProductTagMaps.Count > 10 && item.ProductTagMaps.Count <= 20 ? "font_2" : css;
          css = item.ProductTagMaps.Count > 20 && item.ProductTagMaps.Count <= 30 ? "font_3" : css;
          css = item.ProductTagMaps.Count > 30 ? "font_4" : css;
          %>
        <span><a href="/product/listtag/<%=item.ID %>" class="<%=css %>"><%=Html.Encode(item.Keyword) %></a></span>&nbsp;
    <%} %>
</div>
<%} %>


